﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo05132
{
    class Class1
    {
        private int ID;
        private string name;
        private string DeparTment;

        public int Id 
        {
            get { return this.ID; }
            set { this.ID = value; }
        }
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public string Department
        {
            get { return this.DeparTment; }
            set { this.DeparTment = value; }
        }
        //无参
        public Class1()
        {
            Id = 10086;
            Name = "李四的那条狗";
            Department = "杀狗部";
        }
        //有参
        public Class1(int ID, string name,string DeparTment)
        {
            this.Id= ID;
            this.Name = name;
            this.Department = DeparTment;
        }
        public void user ()
        {
            Console.WriteLine("员工工号：{0}",this.ID);
            Console.WriteLine("员工姓名：{0}",this.name);
            Console.WriteLine("员工部门信息：{0}",this.DeparTment );

        }
    }
}
